<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/templates/ambiente.xhtml">
	<ui:define name="conteudo">
		<div style="width: 800px;">
			<h2>RELAÇÃO DE MANUTENÇÕES REALIZADAS</h2>
			<h:form id="form">
				<p:dataTable id="tabManutencao" styleClass="tabelas"
					paginator="true" rows="6"
					value="#{beanManutencao.listaManutencoes}" var="manutencao">
					<p:column width="20%">
						<f:facet name="header">
							<h:outputText value="Data" />
						</f:facet>
						<h:outputText value="#{manutencao.datahora}" />
					</p:column>
					<p:column width="20%">
						<f:facet name="header">
							<h:outputText value="Veículo" />
						</f:facet>
						<h:outputText value="#{manutencao.veiculo.placa}" />
					</p:column>
					<p:column width="30%">
						<f:facet name="header">
							<h:outputText value="Manutenção Realizada" />
						</f:facet>
						<h:outputText value="#{manutencao.descricao}" />
					</p:column>
					<p:column width="30%">
						<f:facet name="header">
							<h:outputText value="Empresa Prestadora" />
						</f:facet>
						<h:outputText value="#{manutencao.prestador}" />
					</p:column>
				</p:dataTable>
				<br />
				<div align="right">
					<p:commandButton value="Retornar ao Menu"
						action="#{beanSessao.Acessar_MenuPrincipal}" />
				</div>
			</h:form>
		</div>
	</ui:define>
</ui:composition>
</html>